import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'home',
            component: () => import('@/views/home/home.vue')
        },
        // {
        //     path: '/gamematch',
        //     name: 'gamematch',
        //     component: () => import('@/views/game/gamematch.vue')
        // },
        {
            path: '/gamematch2',
            name: 'gamematch2',
            component: () => import('@/views/game/gamematch2.vue')
        },
        // {
        //     path: '/board2',
        //     name: 'board2',
        //     component: () => import('@/components/gamematch/board2.vue')
        // },
        {
            path: '/login',
            name: 'login',
            component: () => import('@/views/login/login.vue')
        },
        {
            path: '/register',
            name: 'register',
            component: () => import('@/views/register/register.vue')
        },
    ]
})

export default router
